<template>
  <div class="composition">
    <!-- 左侧 -->
    <div class="composition-left">
      <Aside></Aside>
    </div>
    <!-- 右侧 -->
    <div class="composition-right">
      <div class="main-header">
        <Cephalosome></Cephalosome>
      </div>
      <div class="main-content">
        <router-view></router-view>
      </div>
    </div>
  </div>
</template>

<script>
import Aside from "../../components/Aside.vue";
import Cephalosome from "../../components/Cephalosome.vue";
export default {
  components: {
    Aside,
    Cephalosome,
  },
};
</script>

<style>
* {
  padding: 0;
  margin: 0;
}
.composition {
  width: 100%;
  height: 100%;
  display: flex;
}
.composition-left {
  position: sticky;
  top: 0;
  width: 185px;
  height: 100%;
  background: #f2f2f4;
}
.composition-right {
  height: 100%;
  flex: 1;
  background: #f9f9fa;
}
.main-content {
  height: 90%;
  overflow-y: scroll;
  position: relative;
}
.main-header{
  position: sticky;
  top: 0;
  z-index: 999;
  background: #f9f9fa;
}
</style>
